/*
 * @Description: 流程字段定义 API
 * @Author: zhuoda
 * @Date: 2024-03-21
 * @LastEditTime: 2024-03-21
 * @LastEditors: zhuoda
 */
import {postRequest, getRequest} from '/@/lib/axios';

export const defApi = {
  // 查询流程字段定义列表 @author zhuoda
  listDef: (param) => {
    return postRequest('/flowable/def/list', param);
  },

  // 查询流程字段定义详细 @author zhuoda
  getDef: (id) => {
    return getRequest(`/flowable/def/${id}`);
  },

  // 新增流程字段定义 @author zhuoda
  addDef: (param) => {
    return postRequest('/flowable/def', param);
  },

  // 修改流程字段定义 @author zhuoda
  updateDef: (param) => {
    return postRequest('/flowable/def', param);
  },

  // 删除流程字段定义 @author zhuoda
  deleteDef: (id) => {
    return getRequest(`/flowable/def/${id}`);
  },

  // 查询流程字段定义列表(不翻页) @author zhuoda
  listAll: (param) => {
    return postRequest('/flowable/def/listAll', param);
  }
};
